Skip to content

Conversation

@ktaube26
Copy link
Contributor

@ktaube26 ktaube26 commented Dec 19, 2025

Description

This pull request refactors the pipeline loading mechanism to use individual .yaml config files for pipelines instead of directories, and adds several new retail analytics pipeline configurations for both CPU and GPU. It also updates the test suite to reflect these changes and adds a new video resource for object classification. The most important changes are grouped below:

Pipeline Loader Refactor:

  • Refactored PipelineLoader in loader.py to list pipeline config .yaml files instead of directories, removed the pipeline name validation logic, and updated the config loading method to accept file paths directly. This simplifies pipeline discovery and loading.
  • Updated PipelineManager to work with the new config path-based pipeline loading.

New Retail Pipeline Configurations:

  • Added four new retail pipeline configuration files for face detection, age/gender recognition, YOLO 11n object detection, and EfficientNet B0 classification, supporting both CPU and GPU. [1] [2] [3] [4] [5] [6]

Testing Updates:

  • Replaced the old test suite in tests/loader.py with a new one in tests/loader_test.py to test the new file-based pipeline loader logic. [1] [2]

Video Resource Update:

  • Added a new video resource for object classification in default_recordings.yaml to support the new retail pipelines.

Checklist:

  • I agree to use the APACHE-2.0 license for my code changes.
  • I have not introduced any 3rd party components incompatible with APACHE-2.0.
  • I have not included any company confidential information, trade secret, password or security token.
  • I have performed a self-review of my code.

@ktaube26 ktaube26 marked this pull request as ready for review January 13, 2026 15:32
@ktaube26 ktaube26 requested a review from Copilot January 13, 2026 15:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request refactors the pipeline loading mechanism to use individual .yaml config files instead of directories and adds several new retail analytics pipeline configurations for CPU, GPU, and NPU. It also updates tests, removes unused scripts, and adds video resources.

Changes:

  • Refactored PipelineLoader to work with .yaml files directly instead of pipeline directories, simplifying discovery and configuration loading
  • Added 9 new retail pipeline configuration files for face detection/age-gender recognition, YOLO 11n object detection, and EfficientNet B0 classification across CPU, GPU, and NPU
  • Updated test suite to reflect file-based pipeline loading
  • Removed 3 unused retail-related Python scripts and added 2 new video resources for testing

Reviewed changes

Copilot reviewed 20 out of 36 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vippet/pipelines/loader.py Refactored to list and load pipeline configs from .yaml files instead of directories
vippet/managers/pipeline_manager.py Updated to use config paths instead of pipeline names
vippet/tests/loader_test.py New test file for file-based pipeline loader
vippet/tests/loader.py Deleted old directory-based loader tests
vippet/video_encoder.py Enhanced fakesink replacement logic to handle embedded property values
vippet/pipelines/*.yaml Added 9 new retail pipeline configurations for various device types
ui/src/pages/Home.tsx Added image imports for new pipelines
shared/videos/default_recordings.yaml Added video resources for object classification and age prediction
shared/scripts/*.py Removed unused barcode and OCR processing scripts
shared/models/supported_models.yaml Enabled NPU support for efficientnet-b0 and yolo11n models

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

KaliszWiktoria
KaliszWiktoria previously approved these changes Jan 13, 2026
@ktaube26 ktaube26 merged commit 483d779 into main Jan 14, 2026
30 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants